package com.ljf.order.enums;

import lombok.Getter;

/**
 * @Author: Ljf
 * @Date : 2019/2/1 0:10
 * @Description :
 */
@Getter
public enum ResultEnum {
    PARAM_ERROR(1,"参数不正确"),
    PRODUCT_NOT_EXIST(10,"商品不存在"),
    PRODUCT_STOCK_ERROR(11,"商品库存不正确"),
    ORDER_NOT_EXIST(12,"订单不存在"),
    ORDER_STATUS_ERROR(13,"订单状态不正确"),
    ORDER_DETAIL_EMPTY(14,"订单详情不存在"),
    ORDER_UPDATE_FAIL(15,"订单更新失败"),
    ORDER_PAYSTATUS_ERROR(16,"订单更新失败"),
    CART_ERROR(17,"购物车不可为空"),
    ORDER_OWNER_ERROR(18,"订单查询人错误"),
    ;
    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
